package cac.fenjian.resource.logMonitor.service;

import cac.fenjian.resource.logMonitor.dao.MESLogDao;
import com.cac.dme.adapter.rest.msg.ResponseMsg;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.HashMap;
import java.util.List;

/**
 * @className: MESLogResendService
 * @description: （描述这个类的作用）
 * @author:
 * @date: 2023/7/20 14:48:48 周四
 * @version: 1.0
 */
@Service
public class MESLogResendService {

    @Autowired
    private MESLogDao mesLogDao;

    public PageInfo searchDispatchedData(int startPage, int pageSize, HashMap queryParam){
        PageHelper.startPage(startPage,pageSize);
        List<HashMap> data = mesLogDao.searchDispatchedData(queryParam);
        PageInfo pageInfo = new PageInfo(data);
        return pageInfo;
    }

}
